package com.lvt.example.thinking.in.spring.questions.L23.transactional;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

/**
 * desc：class
 *
 * @author LT
 * @date 2022/10/25
 */

@Mapper
public interface CourseMapper {
    @Update("update `course` set number = number + 1 where id = #{id}")
    void addCourseNumber(int courseId);
}